package com.application.service.Impl;

import com.application.dao.MainDao;
import com.application.domain.Main;
import com.application.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MainServiceImpl implements MainService {

    @Autowired
    MainDao mainDao;

    @Override
    public List<Main> getAll() {
        List<Main> mainList = mainDao.selectList(null);
        return mainList;
    }
}
